package com.bwie.patient.controller;

import com.bwie.common.core.domain.Result;
import com.bwie.patient.service.MedBodyPartsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/MedBodyParts")
@CrossOrigin
public class MedBodyPartsControllerLHC {
    @Autowired
    private MedBodyPartsService medBodyPartsService;


    /**
     * 展示身体部分
     */
    @GetMapping("list")
    public Result queryAllBodyParts() {
        return medBodyPartsService.queryAllBodyParts();
    }

    /**
     * 根据身体部分 查询症状
     */
    @GetMapping("querySymptomByBodyParts/{id}")
    public Result querySymptomByBodyParts(@PathVariable Long id) {
        return medBodyPartsService.querySymptomByBodyParts(id);
    }
}
